package test1;

public class Employee implements  Cloneable {
	private String name;
	private double salary;
	public Employee(String name, double salary) {
		this.name = name;
		this.salary = salary;
	}
	
	@Override
	public String toString() {
		return "Employee [name=" + name + ", salary=" + salary + "]";
	}

	public Employee clone() throws CloneNotSupportedException{
		  return (Employee) super.clone();
	}
}
